package top.zxybird.yun.serialization.thrift.model;

import lombok.EqualsAndHashCode;

/**
 * 单例
 */
@EqualsAndHashCode(callSuper = true)
public class TVoid extends TType {

  private Object value = null;

  private TVoid() {
    this.setType(TTypeConstant.VOID);
  }

  private static class SingletonHolder {
    private static final TVoid INSTANCE = new TVoid();
  }

  public static TVoid getInstance() {
    return SingletonHolder.INSTANCE;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("TVoid{");
    sb.append("value=").append(value);
    sb.append('}');
    return sb.toString();
  }
}
